package com.xxxcompany.shop.servlet;

import javax.servlet.ServletContextAttributeEvent;
import javax.servlet.ServletContextAttributeListener;
import javax.servlet.annotation.WebListener;

@WebListener
public class Listener2 implements  ServletContextAttributeListener
{
	@Override
	public void attributeAdded(ServletContextAttributeEvent event) {
		System.out.println("ServletContext域对象 信息被添加");
	}
	
	@Override
	public void attributeRemoved(ServletContextAttributeEvent event) {
		System.out.println("ServletContext域对象 信息被移除");
	}
	
	@Override
	public void attributeReplaced(ServletContextAttributeEvent event) {
		System.out.println("ServletContext域对象 信息被替换");
	}

}